package com.akkainaction.hellorouter;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.hellorouter.router.RouterTaskActor;

public class TestRouteeActor {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys");
        ActorRef routerTaskActor = system.actorOf(Props.create(RouterTaskActor.class), "routerTaskActor");
        routerTaskActor.tell("A",ActorRef.noSender());
        routerTaskActor.tell("B",ActorRef.noSender());
        routerTaskActor.tell("C",ActorRef.noSender());
        routerTaskActor.tell("D",ActorRef.noSender());
        routerTaskActor.tell("E",ActorRef.noSender());
    }
}
